package com.example.demo;

public class StringDemo {
    private static String A;

    public static void main(String[] args) {
        A = "23,12,43,5,34,25,35,4,3";
        String[] BoxNumber = A.split(",");
        System.out.println(BoxNumber[3]);
        for (int i = 0; i < BoxNumber.length; i++) {
            System.out.println(BoxNumber[i]);
        }
    }
}
